home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Language/OS - Multiplatform Resource Library
/
LANGUAGE OS.iso
/
f2c
/
may_5_92.lha
/
f2c.VMay_5_1992
/
libF77
/
h_nint.c
< prev
next >
Wrap
C/C++ Source or Header
|
1992-05-07
|
147b
|
13 lines
#include "f2c.h"
extern integer s_cmp();
shortint h_nint(x)
real *x;
{
double floor();
return( (*x)>=0 ?
floor(*x + .5) : -floor(.5 - *x) );
}